package Text_79;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Code {

	public static void main(String[] args) throws IOException {
		 //加密
//      FileInputStream fis = new FileInputStream("src\\Day10\\pi.jpg");
//      FileOutputStream fos = new FileOutputStream("src\\Day10\\pii.jpg");
//      int len;
//      while((len = fis.read()) != -1){
//          fos.write(len^10);
//      }
      //解密
      FileInputStream fis1 = new FileInputStream("src\\Day10\\pii.jpg");
      FileOutputStream fos1 = new FileOutputStream("src\\Day10\\p.jpg");
      int len1;
      while((len1 = fis1.read()) != -1){
          fos1.write(len1^10);
      }
      fos1.close();
      fis1.close();

	}

}
